import {Map} from 'immutable'

import {CART_SUB_DATA} from '../actionType'

let data = Map({
    cartData:[]
})


export let cartReducer = (state=data,action)=>{
    switch(action.type){
        case CART_SUB_DATA:
            return state.set("cartData",action.payload)
        default:
            return state
    }
}